<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>订单汇总列表</title>
    <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1.0" />
    <#include "/view/admin/head.html"/>
    <script type="text/javascript" src="${base}/jstool/bootstrap-datetimepicker/js/bootstrap-datetimepicker.js"></script>
    <script type="text/javascript" src="${base}/jstool/bootstrap-datetimepicker/js/locales/bootstrap-datetimepicker.zh-CN.js"></script>
    <link rel="stylesheet" type="text/css" href="${base}/jstool/bootstrap-datetimepicker/css/bootstrap-datetimepicker.min.css" />
    <script type="text/javascript" src="${base}/jstool/bootstrap-datetimepicker/js/bootstrap-datetimepicker.js"></script>
    <script type="text/javascript" src="${base}/jstool/bootstrap-datetimepicker/js/locales/bootstrap-datetimepicker.zh-CN.js"></script>
    <link rel="stylesheet" type="text/css" href="${base}/jstool/bootstrap-datetimepicker/css/bootstrap-datetimepicker.min.css" />
    <script type="text/javascript" src="${base}/jstool/bootstrap-select/js/bootstrap-select.min.js"></script>
    <script type="text/javascript" src="${base}/jstool/bootstrap-select/lang/defaults-zh_CN.min.js"></script>
    <link rel="stylesheet" type="text/css" href="${base}/jstool/bootstrap-select/css/bootstrap-select.min.css" />

    <style type="text/css">
        .table-class{
            width:90%;
            text-align: center;
            border:1px solid #afd9ee;
            margin:0 auto;
            margin-top: 50px;
        }
        .list-path{
            height: 50px;
            line-height: 50px;
            background-color: #9acfea;

        }
        table th{
            text-align: center;
            WORD-WRAP: break-word;
            width: 100px;
        }
        table thead tr {
            background-color: #9acfea;
        }
        .table-query{
            /*height: 40px;*/
            /*width:80px;*/
            /*text-align: center;*/
            white-space:nowrap;
            /*position: relative;*/
            float: left;
            display:inherit;
            /*display: inline;*/


        }
        .label-head{
            height: 60px;
            width: 100%;
        }
        .bs-example .input-group{
            width:300px;
            float: left;
            margin-top:20px;

        }
        .bank-label{
            width:25px;
            float: left;
        }
        .label-hidden{
            display: none;
        }
        .panel-body{
            padding-top: 0px;
        }
        .input-group input[type='text']{
            z-index: inherit;
        }
       /* .input-group{
            margin-top:20px;
        }*/
    </style>
    <script type="text/javascript">

    </script>
</head>
<body>

<#include "/view/admin/listnav.html"/>
<div class="table-class">


<#include "/view/admin/opermsg.html"/>

    <table class="table table-hover">
 
        <thead>
        <tr>
            <td>商家用户</td>
            <td>已售量</td>
            <td>订单总金额</td>
        </tr>
        </thead>
        <tbody>
        <#list pagination.list as c>
            <tr>
                <td>${c.businessName!}</td>
                <td>${c.amount?default(0)}</td>
                <td>${c.totalAmount?default(0)}</td>
            </tr>


        </#list>
        <#if 0==pagination.totalCount>
            <tr>
                <td colspan="7" style="color: red"> 没有相关数据 </td>
            </tr>
        </#if>





        </tbody>
    </table>
        <!--<span style="text-align: left"> <a href="#" class="btn btn-primary">新增</a></span>-->
    <ul class="pagination" >

    <#if pagination??>
        <#if pagination.pageNo gt 1>
                <li><a href="javascript:setPage(1,#{pagination.pageSize})">首页</a></li>
        </#if>
            <#list 5..1 as t>
                <#if (pagination.pageNo-t gt 0)>
                    <li><a href="javascript:setPage(#{pagination.pageNo-t},#{pagination.pageSize})">#{pagination.pageNo-t}</a></li>
                </#if>
            </#list>
            <li><a href="#" style="background-color: #ddd;">#{pagination.pageNo}</a></li>
            <#list 1..5 as t>
                <#if (pagination.totalPage gt pagination.pageNo+t-1)>
                    <li><a href="javascript:setPage(#{pagination.pageNo+t},#{pagination.pageSize})">#{pagination.pageNo+t}</a></li>
                </#if>
            </#list>
            <#if pagination.totalPage gt pagination.pageNo>
                <li><a href="javascript:setPage(#{pagination.totalPage},#{pagination.pageSize})">尾页</a></li>
            </#if>

        </#if>

    </ul>


</div>
<script>
    function setPage(pageNo,pageSize){
        var href = "${base}/czjorder/summary.do?";


        href+="&pageNo="+pageNo;
        href+="&pageSize="+pageSize;
        location.href=href;
    }
    function checkDelete(url){
        if (window.confirm("确认删除吗?")) {
            location.href=url;
        }
    }

</script>

</body>
</html>
